<?php
class MemberModel extends Model {
	protected $tableName='member';
	
	public function login($username){
		$sql="select * from member where username='$username'";
		$res=mysql_query($sql);
		$userinfo=mysql_fetch_assoc($res);
		return $userinfo;
	}
}
?>